<nz-upload [nzAction]="'#'" [nzCustomRequest]="importExcel" [nzShowUploadList]="false" (nzChange)="fileChange($event)">
  <button nz-button><i nz-icon nzType="upload"></i><span>导入Excel</span></button>
</nz-upload>

<div class="table-container" *ngIf="data.length > 0">
  <nz-table #basicTable [nzData]="data">
    <thead>
      <tr>
        <th *ngFor="let th of data[0]">{{th}}</th>
      </tr>
    </thead>
    <tbody>
      <ng-container *ngFor="let row of basicTable.data,let idx = index">
        <tr *ngIf="idx > 0">
          <td *ngFor="let td of data[idx]">{{td}}</td>
        </tr>
      </ng-container>
    </tbody>
  </nz-table>
</div>